package com.yearner.reviewplan.user.model;

import com.yearner.reviewplan.common.model.AbstractId;
import com.yearner.reviewplan.common.util.UuidGenerator;

/**
 * @author pengyg
 * @since 2019/10/12
 */
public class UserId extends AbstractId {
    private static final long serialVersionUID = -7613209798809820319L;

    public UserId() {

    }

    private UserId(String id) {
        super(id);
    }

    public static UserId byId(String id) {
        return new UserId(id);
    }
//    public static UserId newAccountId(){
//        return new UserId(UuidGenerator.newUuid());}

    @Override
    public String toString() {
        return super.toString();
    }
}
